Keir Fraser [Sat, 31 Mar 2007 12:53:24 +0000 (13:53 +0100)]
linux: User-space grant table device.
A character device for accessing (in user-space) pages that have been
granted by other domains.
Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk>
Fix ioctl interface to be 32/64-bit invariant. Move xen_class
mechanism to common util.c.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Sat, 31 Mar 2007 11:42:02 +0000 (12:42 +0100)]
linux: Add a hook before a page table entry is cleared, for use with
the grant-table device.
Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk>
Keir Fraser [Sat, 31 Mar 2007 11:26:04 +0000 (12:26 +0100)]
xm: Fix an indentation bug.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Keir Fraser [Sat, 31 Mar 2007 11:24:55 +0000 (12:24 +0100)]
blktap: Fix qcow2raw.
qcow2raw would hang the conversion just short of 100%, because the
final write queue was never being submitted. If a blktap drivers read
synchronously, then "submit_events" and "complete" variables are
checked before getting set, so the fact that reads have finished is
not noticed, so the final write queue was never submitted.
Note that I have also removed the variables write_complete and
read_complete. They were unused, and they were also not set correctly
in the synchronous case.
Signed-off-by: Charles Coffing <ccoffing@novell.com>
Keir Fraser [Sat, 31 Mar 2007 11:20:31 +0000 (12:20 +0100)]
xen: Fix numa=on boot.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Fri, 30 Mar 2007 18:02:40 +0000 (19:02 +0100)]
hvm svm: Some code cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Fri, 30 Mar 2007 17:42:49 +0000 (18:42 +0100)]
hvm vmx: Fix MSR-intercept bitmap initialisation (two bitmap offsets
are documented the wrong way round in the current PRM Vol.3). Clear
bits in the bitmap only /after/ it has been initialised to
all-1s. Clean up start-of-day info printing.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Fri, 30 Mar 2007 17:39:34 +0000 (18:39 +0100)]
xen: Fix domain shutdown to synchronously stop domain execution.
Signed-off-by: Keir Fraser <keir@xensource.com>
Ian Campbell [Fri, 30 Mar 2007 16:33:31 +0000 (17:33 +0100)]
[LINUX] Explcitly include linux/mutex.h in files which use mutexes, rather then
relying on an include via some other header.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Tom Wilkie [Fri, 30 Mar 2007 16:28:54 +0000 (17:28 +0100)]
Add support for HVM domains to new xm XenAPI create code
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
Keir Fraser [Fri, 30 Mar 2007 16:13:50 +0000 (17:13 +0100)]
svm: Improve emulation of SMSW instruction for memory operands.
From: Trolle Selander <trolle.selander@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Fri, 30 Mar 2007 16:02:46 +0000 (17:02 +0100)]
hvm: Must increment RIP on INT3 instruction in SVM.
Also tighten up checking of valid exception intercepts -- we should
not vmexit on an exception we have not registered an interest in.
Signed-off-by Tom Woller <thomas.woller@amd.com>
Signed-off-by Thomas Friebel <thomas.friebel@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Ian Campbell [Fri, 30 Mar 2007 13:13:53 +0000 (14:13 +0100)]
[LINUX] Make sure to initialiase the xen features bitmap before first use on x86_64.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Tom Wilkie [Fri, 30 Mar 2007 10:55:34 +0000 (11:55 +0100)]
Add config files for testing xm via XendAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
Jim Fehlig [Wed, 14 Mar 2007 00:13:11 +0000 (18:13 -0600)]
Managed HVM guests are not displayed by 'xm list' after restarting xend.
This patch prevents writing empty configuration items to the domain's
sexpr configuration file. Without the empty items, the sexpr is
parsed properly when xend is started.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
Magnus Carlsson [Thu, 29 Mar 2007 21:27:46 +0000 (14:27 -0700)]
Made tracing thread safe, and also print thread name.
kfraser@localhost.localdomain [Thu, 29 Mar 2007 22:31:58 +0000 (23:31 +0100)]
xend: Fix shutdown method after PV-on-HVM save/restore patch.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 29 Mar 2007 18:26:13 +0000 (19:26 +0100)]
acm: Provide the possibility to choose the VM label of domain-0 in the
kernel line in grub.conf. The format is
ssidref=<ssidref>:sHype:<policy name>:<vm label>. The name of the
policy specified here must be the same name as the in the policy
provided as a module during boot, otherwise the policy will not be
accepted and the system then starts without a policy. The user tool
for 'xm dumppolicy' has been adapted to show which entry in the binary
policy is used by domain-0.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Thu, 29 Mar 2007 18:23:41 +0000 (19:23 +0100)]
hvm: Fix the assert on size in HVM MMIO flag-setting functions
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 29 Mar 2007 18:18:43 +0000 (19:18 +0100)]
Enable VMX MSR bitmap support.
We use it to avoid VMExits on FS_BASE and GS_BASE MSR accesses.
Signed-off-by: Weidong Han <weidong.han@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 29 Mar 2007 17:26:12 +0000 (18:26 +0100)]
xen: Rename remaining vcpu_flags as pause_flags.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 29 Mar 2007 17:19:10 +0000 (18:19 +0100)]
xen: Remove droppings from a previous patch.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 29 Mar 2007 17:07:33 +0000 (18:07 +0100)]
xen: Remove {nmi_pending,nmi_masked,paused} vcpu bitflags.
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Thu, 29 Mar 2007 16:28:34 +0000 (16:28 +0000)]
Merge
Tim Deegan [Thu, 29 Mar 2007 16:27:52 +0000 (16:27 +0000)]
[HVM] Save/restore: PV-on-HVM driver save/restore support
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
Tom Wilkie [Thu, 29 Mar 2007 16:09:49 +0000 (17:09 +0100)]
Let xm commands use domids with XenAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
kfraser@localhost.localdomain [Thu, 29 Mar 2007 15:52:40 +0000 (16:52 +0100)]
xen: Get rid of some VCPUF_* flags and move into their own byte fields.
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Thu, 29 Mar 2007 15:33:32 +0000 (15:33 +0000)]
Merge
Tim Deegan [Thu, 29 Mar 2007 15:32:08 +0000 (15:32 +0000)]
[HVM] Save/restore: fix missing return code in USB restore
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Tim Deegan [Thu, 29 Mar 2007 15:30:01 +0000 (15:30 +0000)]
[HVM] Save/restore: Allow save/restore of multiple NICs
Signed-off-by: Tim Deegan <Tim.Deegan@xenource.com>
Tom Wilkie [Thu, 29 Mar 2007 15:29:31 +0000 (16:29 +0100)]
Finish off network in xm via XenAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
Tim Deegan [Thu, 29 Mar 2007 15:29:15 +0000 (15:29 +0000)]
[HVM] Save/restore: backport pcnet save/restore from qemu tip.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Tim Deegan [Thu, 29 Mar 2007 15:28:27 +0000 (15:28 +0000)]
[HVM] Save/restore: Save the ACPI PM control register in qemu
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Tim Deegan [Thu, 29 Mar 2007 15:27:18 +0000 (15:27 +0000)]
[HVM] Save/restore: don't get guest size from "memory_static_min"
since it doesn't mean that any more. This is a sticking-plaster
to get HVM S/R working until the proper memory-map handling patch
is ready.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Ewan Mellor [Thu, 29 Mar 2007 15:18:39 +0000 (16:18 +0100)]
Fix bad behaviour of xm when calling event.next(), by adding a different error
code (SESSION_NOT_REGISTERED).
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Tom Wilkie [Thu, 29 Mar 2007 14:59:53 +0000 (15:59 +0100)]
Make network.name_label == bridge name
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
Ewan Mellor [Thu, 29 Mar 2007 14:51:04 +0000 (15:51 +0100)]
Minor fix.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Thu, 29 Mar 2007 14:46:30 +0000 (15:46 +0100)]
Added asynchronous event notification through the Xen-API. Added a new command,
xm event-monitor, a new test program for the C bindings, and new bindings
themselves.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Thu, 29 Mar 2007 14:22:02 +0000 (15:22 +0100)]
Fix the xen-api-server option parsing, so that we default to listening on
all interfaces when only a port is given.
This was broken by cset 14601:
966c65f0ddba.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Thu, 29 Mar 2007 14:10:26 +0000 (15:10 +0100)]
Fix PIF_metrics_methods declaration, which has broken PIF.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Thu, 29 Mar 2007 14:06:12 +0000 (15:06 +0100)]
This patch adds serialization of sets with strings. I recursified the
serialization. Only sets with strings are supported so far.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Thu, 29 Mar 2007 14:14:26 +0000 (15:14 +0100)]
xen: Split domain_flags into discrete first-class fields in the
domain structure. This makes them quicker to access, and simplifies
domain pause and checking of runnable status.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 29 Mar 2007 12:29:24 +0000 (13:29 +0100)]
xen: Pause domain when changing debug status.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 29 Mar 2007 11:04:35 +0000 (12:04 +0100)]
hvm: Avoid separate nested-page-table control-register logic in SVM code.
Clean up VMX set_cr0() function a little to avoid unnecesasry diffs
with SVM version.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 29 Mar 2007 10:01:41 +0000 (11:01 +0100)]
hvm: Remove extremely verbose debugging from SVM code.
It would be too verbose to actually turn on to find any non-subtle
bugs, and severely bloats the vmexit handler (making it hard to find
the real code amongst the debugging code).
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 29 Mar 2007 09:41:37 +0000 (10:41 +0100)]
hvm vmx: Better management of VMX control bitmaps.
Distinguish between 'nice to have' and 'must have' features.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Wed, 28 Mar 2007 19:19:11 +0000 (20:19 +0100)]
pciback: Devices can lose config space info on D3->D0 transition, yet
they may not (and even if they try, can not) restore the BARs. Since
Linux does not do this for us, pciback must do it for itself manually.
Possible todo: Restore all first 64 bytes of the config space?
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Wed, 28 Mar 2007 17:48:54 +0000 (18:48 +0100)]
ia64: Remove list_move() implementation. Now implemenetd in generic list.h.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Keir Fraser [Wed, 28 Mar 2007 17:47:17 +0000 (18:47 +0100)]
hvm: Clean up handling of exception intercepts.
Only intercept #DB/#BP if a debugger is attached.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Wed, 28 Mar 2007 15:52:05 +0000 (16:52 +0100)]
hvm svm: Inject #UD exception if guest tries to execute any SVM-related
function (except VMMCALL).
Signed-off-by: Mats Petersson <mats.petersson@amd.com>
Tim Deegan [Wed, 28 Mar 2007 15:04:14 +0000 (15:04 +0000)]
Merge
Tim Deegan [Wed, 28 Mar 2007 15:02:54 +0000 (15:02 +0000)]
[SVM] Inject a "fake" interrupt if we delay an interrupt for an exception
(instead of just waiting for the next vmexit to inject the pending
interrupt, since that could be some arbitrary number of instructions later).
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Steven Hand [Wed, 28 Mar 2007 14:58:42 +0000 (15:58 +0100)]
Don't trap int3 instructions by default - can have a major overhead in
certain cases, and typically not used for anything.
Signed-off-by: Steven Hand <steven@xensource.com>
Tom Wilkie [Wed, 28 Mar 2007 14:31:17 +0000 (15:31 +0100)]
Remove unused import; library moved
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
kfraser@localhost.localdomain [Wed, 28 Mar 2007 14:01:24 +0000 (15:01 +0100)]
linux pciback: Proper fix for build failure.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Wed, 28 Mar 2007 13:43:41 +0000 (14:43 +0100)]
xen: Sync the list.h macros to Linux 2.6.18.
This also pulls in RCU-related functions, superceding a patch from Mike Day.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 28 Mar 2007 13:42:54 +0000 (14:42 +0100)]
linux: Fix the pciback build (temporary hack).
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 28 Mar 2007 13:00:56 +0000 (14:00 +0100)]
[ACM] Allow version information to be embedded in the XML representation of
the ACM policy. The translation tool has been adapted to parse the
version found in the XML representation and put it into the binary
policy. Xen has been adapted to remember the version information and
report it when asked for the current policy.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Wed, 28 Mar 2007 12:56:22 +0000 (13:56 +0100)]
xenbus: check function return values of functions declared with
__must_check post-2.6.18.
This implies completely suppressing frontend/backend operations if the
respective bus or device registration failed.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Wed, 28 Mar 2007 12:55:01 +0000 (13:55 +0100)]
pciback: check function return values of functions declared with
__must_check post-2.6.18.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Wed, 28 Mar 2007 12:53:27 +0000 (13:53 +0100)]
Remove page_is_removable arch hook. Now the ia64 p2m semantic becomes
same as the x86 p2m table so that the hook is unnecessary any more.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
kfraser@localhost.localdomain [Wed, 28 Mar 2007 12:52:03 +0000 (13:52 +0100)]
linux evtchn: Read function in evtchn driver requires locking.
Signed-off-by: Keir Fraser <keir@xensource.com>
Tom Wilkie [Wed, 28 Mar 2007 11:38:13 +0000 (12:38 +0100)]
Fix to let TCP server run without SSL installed.
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
Christian Limpach [Wed, 28 Mar 2007 10:01:58 +0000 (11:01 +0100)]
[linux] Fix xenbus device to allow replies larger than 4096 bytes.
Also fix reply_queue mutex across fragmented replies and for concurrent
readers.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
kfraser@localhost.localdomain [Wed, 28 Mar 2007 09:41:53 +0000 (10:41 +0100)]
Merge with xen-ia64-unstable.hg
kfraser@localhost.localdomain [Wed, 28 Mar 2007 09:38:41 +0000 (10:38 +0100)]
Merge with xen-ia64-unstable.hg
Christian Limpach [Wed, 28 Mar 2007 09:36:49 +0000 (10:36 +0100)]
[ioemu] Don't enable monitor or serial console on virtual consoles by default.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Tim Deegan [Wed, 28 Mar 2007 09:12:16 +0000 (09:12 +0000)]
Editing long lines in pygrub interactively could lead to tracebacks.
Attached patch fixes things.
Signed-off-by: Jeremy Katz <katzj@redhat.com>
Christian Limpach [Wed, 28 Mar 2007 09:05:37 +0000 (10:05 +0100)]
[ioemu] Revert 14585:
3375391fb0c9 since this removes useful functionality.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Ewan Mellor [Wed, 28 Mar 2007 09:05:03 +0000 (10:05 +0100)]
Fix missing import.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 28 Mar 2007 09:04:32 +0000 (10:04 +0100)]
Fix diagnosis of unhandled exceptions.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Tim Deegan [Wed, 28 Mar 2007 08:44:08 +0000 (08:44 +0000)]
Merge
Tim Deegan [Wed, 28 Mar 2007 08:40:42 +0000 (08:40 +0000)]
[HVM][HAP] Fix up some memory allocation bugs
The attached patch initializes count_info of newly allocated hap page
with 0, and removes unnecessary page deallcation when destroying monitor
table. Without this patch, destroying hap domain will fail.
Signed-off-by: Wei Huang (wei.huang2@amd.com)
Ewan Mellor [Wed, 28 Mar 2007 00:09:14 +0000 (01:09 +0100)]
Fix typo.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Tue, 27 Mar 2007 22:23:01 +0000 (23:23 +0100)]
Added HTTPS support to Xend. There are new configuration options for the
Xen-API and legacy XML-RPC servers to set key and certificate files, and
xm simply needs to be configured use an https rather than an http URL.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Tue, 27 Mar 2007 22:03:32 +0000 (23:03 +0100)]
Added comment regarding a Python bug.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Tue, 27 Mar 2007 21:34:22 +0000 (22:34 +0100)]
Move the client-specific parts of xmlrpclib2 into xmlrpcclient.py. This means
that clients do not need to import swathes of server code.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
awilliam@xenbuild2.aw [Tue, 27 Mar 2007 18:21:48 +0000 (12:21 -0600)]
merge with xen-unstable.hg
Ewan Mellor [Tue, 27 Mar 2007 15:52:56 +0000 (16:52 +0100)]
Add auto-start and auto-stop functionality.
Patch by Alastair Tse <atse@xensource.com>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Tue, 27 Mar 2007 15:33:26 +0000 (16:33 +0100)]
Use the new blkback sysfs statistics/{rd,wr}_sect to get a more accurate
bandwidth measurements for VBD I/O.
Patch by Alastair Tse <atse@xensource.com>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kfraser@localhost.localdomain [Tue, 27 Mar 2007 18:05:48 +0000 (19:05 +0100)]
hvm svm: Do not deliver virtual interrupts concurrently with virtual exceptions.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 27 Mar 2007 17:53:05 +0000 (18:53 +0100)]
hvm svm: Initialise VMCB CR4 and shadow CR4 with 0 when VMCB is being
constructed under nested paging mode. It complies with recent
reset_to_realmode change in hvmloader.
Signed-off-by: Wei Huang <wei.huang2@amd.com>
kfraser@localhost.localdomain [Tue, 27 Mar 2007 17:51:07 +0000 (18:51 +0100)]
hvm: Clean up intr_assist() functions (both VMX and SVM,. but mainly
the latter!).
Signed-off-by: Keir Fraser <keir@xensource.com>
Tom Wilkie [Tue, 27 Mar 2007 16:43:36 +0000 (17:43 +0100)]
Fix typo in VDB_metrics_methods in XenAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
awilliam@xenbuild2.aw [Tue, 27 Mar 2007 15:07:51 +0000 (09:07 -0600)]
[IA64] Remove debugger calls from panic_domain()
These hang when compiled with crash_debug=y
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Tom Wilkie [Tue, 27 Mar 2007 14:47:02 +0000 (15:47 +0100)]
Make xm sysrq work via XenAPI re: PAUSED state problem
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
kfraser@localhost.localdomain [Tue, 27 Mar 2007 16:23:33 +0000 (17:23 +0100)]
linux/x86-64: cleanup the Xen-specific macros in entry-xen.S
- SWITCH_TO_KERNEL is dead (and was broken)
- comments to HYPERVISOR_IRET were somewhat outdated
- updates of selecor RPLs shouldn't be done with byte size to avoid
store-to-load forwarding issues
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Tue, 27 Mar 2007 16:21:14 +0000 (17:21 +0100)]
hvm svm: Bug fix for page allocation when HAP is being used
Initialise count_info of newly allocated hap page with 0, and removes
unnecessary page deallcation when destroying monitor table. Without
this patch, destroying hap domain will fail.
Signed-off-by: Wei Huang <wei.huang2@amd.com>
kfraser@localhost.localdomain [Tue, 27 Mar 2007 15:56:20 +0000 (16:56 +0100)]
hvm: Fix undefined bit shifting in mmio emulation path
In functions set_eflags_* (xen/arch/x86/hvm/io.c), if the first
argument "size" equals sizeof(long), the following code will produce
unintended and invalid result:
unsigned long mask = (1 << (8 * size)) - 1;
In ANSI C, if the shift amount is greater or equal to the width of the
data type, the result is undefined. Specifically on x86, a bit mask is
applied to the shift amount, so that more significant bits are
ignored. So the above expression results 0x0 instead of the intended
~0UL.
This patch fixes this issue. Because size=0 is not a valid parameter,
rewriting the code using right shift avoids an additional condition
check.
Signed-off-by: Qing He <qing.he@intel.com>
kfraser@localhost.localdomain [Tue, 27 Mar 2007 15:45:37 +0000 (16:45 +0100)]
Fix 'xm list' long output to skip legacy 'cpus'.
Fixes bugzilla report #935.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
kfraser@localhost.localdomain [Tue, 27 Mar 2007 15:42:47 +0000 (16:42 +0100)]
xen: Remove legacy references to explicitly per-cpu perf counters.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 27 Mar 2007 15:35:37 +0000 (16:35 +0100)]
xen: Make all performance counter per-cpu, avoiding the need to update
them with atomic (locked) ops.
Conversion here isn't complete in the sense that many places still use
the old per-CPU accessors (which are now redundant). Since the patch
is already rather big, I'd prefer replacing those in a subsequent
patch.
While doing this, I also converted x86's multicall macros to no longer
require inclusion of asm-offsets.h in the respective C file (on IA64
the use of asm-offsets.h in C sources seems more wide spread, hence
there I rather used IA64_ prefixes for the otherwise conflicting
performance counter indices).
On x86, a few counter increments get moved a little, to avoid
duplicate counting of preempted hypercalls.
Also, a few counters are being added.
IA64 changes only compile-tested, hence somebody doing active IA64
work may want to have a close look at those changes.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Tue, 27 Mar 2007 15:23:52 +0000 (16:23 +0100)]
hvm: Remove access to QEMU monitor in VNC server
This fixes a RHEL5 errata and CVE-2007-0998.
The monitor is still accessible in debug builds of ioemu (debug=y).
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
kfraser@localhost.localdomain [Tue, 27 Mar 2007 15:19:25 +0000 (16:19 +0100)]
linux: Fix for missing response to XS_UNWATCH request.
From: Magnus Carlsson <magnus@galois.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 27 Mar 2007 15:03:30 +0000 (16:03 +0100)]
Further shrink the big-lock window.
A few more adjustments to when the 'big' lock is taken/dropped.
Also, fix a case where the foreign domain setting may not get properly
cleared at the end of a hypercall (in case of an early error).
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 27 Mar 2007 14:53:45 +0000 (15:53 +0100)]
Add WARN() and generic WARN_ON().
Based on a patch by Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 27 Mar 2007 13:50:17 +0000 (14:50 +0100)]
In order to allow building as non-root with a non-default CC (which
root may not have access to through its $PATH), defer the generation
of an error until CC is actually needed.
Original patch by Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Ewan Mellor [Tue, 27 Mar 2007 13:34:34 +0000 (14:34 +0100)]
Do not issue a warning on XendDomainInfo.recreate for dom0 -- this is normal
on a clean machine.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Tue, 27 Mar 2007 13:22:29 +0000 (14:22 +0100)]
Fix some fields so that they are declared as read-only (always should have
been) and implement {VBD,VIF}_metrics.get_all.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Tom Wilkie [Tue, 27 Mar 2007 13:02:17 +0000 (14:02 +0100)]
Merge